/* eslint-disable */
<template>
  <div class="hello">
    <ol>
      <li v-for="stu in students" :key="stu.id">
          {{ stu.name }}
            |
          {{ stu.age }} 岁
          <hr/>
        </li>
    </ol>

  </div>
</template>

<script>
export default {
  name: 'StudentsList',
  data () {
    return {
      students: null
    }
  },
  mounted () {
    this.axios
      // .get('https://api.coindesk.com/v1/bpi/currentprice.json')
      .get('http://localhost:8080/api/v1/student/all')
      .then(response => (this.students = response.data.data))
  }
}
</script>
